package com.zjj.day2.test1;
/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/18
 */

public class Worker extends Person {
    public Worker(String name, int age) {
        super(name, age);
    }

    public void work() {
        System.out.println(getName() + getAge() + "岁，正在工作。");
    }
}    